import request from '@/utils/request'

import variable from '@/utils/variables'
const baseURL = variable.URL.baseURL

// 忘记密码发送验证码
export function getSmsCode(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/send_code',
	    method: 'POST',
      params: params
	})
}

//校验验证码
export function validateMobile(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/validate_mobile',
	    method: 'POST',
      params: params
	})
}

// 修改密码
export function setNewPassword(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/forget_password',
	    method: 'PUT',
      params: params
	})
}
